package com.zjk.ffmpeg.demo.utils;

import lombok.extern.slf4j.Slf4j;

import java.io.File;

/**
 * FileUtils
 *
 * @auther zjk
 * @create 2024-04-11 22:17
 */
@Slf4j
public class FileUtil {

    public static boolean checkAndCreateDir(String dirPath) {
        File file = new File(dirPath);
        if (!file.exists()) {
            log.info("目录不存在, 创建目录:{}", dirPath);
            return file.mkdirs();
        }
        return true;
    }
}
